package org.example.feign;

import org.example.entity.Business;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import java.util.List;

@FeignClient(name = "business-service")
public interface BusinessFeignClient {
    @GetMapping("/business/listBusinessByOrderTypeId")
    List<Business> listBusinessByOrderTypeId(@RequestParam("orderTypeId") Integer orderTypeId);

    @GetMapping("/elm-api/business/getBusinessById")
    Business getBusinessById(@RequestParam("businessId") Integer businessId);
}